#ifndef MAPRECORDWIDGET_H
#define MAPRECORDWIDGET_H

#include <QWidget>
#include "MapWidget/mapwidget.h"
#include "Communication/mapctrl.h"
#include "settingwidget.h"
#include "gpsrecorder.h"
#include "gpsreader.h"

namespace Ui {
class MapRecordWidget;
}

class MapRecordWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MapRecordWidget(QWidget *parent = 0);
    ~MapRecordWidget();

private slots:
    void carStateChanged(bool);
    void rtkStateChanged(bool);
    void recvCarStateInfo(int speed, int acce, int brake);
    void recorderReady();
    void on_start_clicked();
//    void on_stop_clicked();
    void on_settings_clicked();
    void on_view_clicked(bool checked);
    void on_makr_light_clicked(bool checked);
    void on_mark_sidewalk_clicked(bool checked);
    void on_mark_curve_clicked(bool checked);
    void on_mark_station_clicked(bool checked);
    void on_start_toggled(bool checked);
    void on_start_clicked(bool checked);
    void on_flag_1_clicked(bool checked);
    void on_flag_2_clicked(bool checked);
    void on_flag_3_clicked(bool checked);
    void on_flag_4_clicked(bool checked);

private:
    Ui::MapRecordWidget *ui;
    MapWidget* mapWidget;//地图界面
    MapCtrl* mapCtrl;//地图控制,包含socket通信部分
    SettingWidget* winSettings;//配置界面
    GpsReader* gReader;
    GpsRecorder* gRecorder;
};

#endif // MAPRECORDWIDGET_H
